package com.tjc.spring.util;

/**
 * @Author: tjc
 * @description
 * @Date Created in 14:50 2020/9/25
 */
public class BeanNameUtil {
    public static String lowerCaseFirst(String str) {

        if (str == null || str.isEmpty())
            return "";
        StringBuilder buffer = new StringBuilder(str);
        char firstOne = buffer.charAt(0);
        if (firstOne >= 'A' && firstOne <= 'Z') {
            firstOne = Character.toLowerCase(firstOne);
            buffer.replace(0, 1, firstOne + "");
        }
        return buffer.toString();
    }

}
